using System;
using NetFramework.Configuration;
using System.Xml;
using System.Xml.Serialization;

namespace NetFramework.Transactions
{
	/// <summary>
	/// Summary description for TransactionHandlingSettingsHandler.
	/// </summary>
	public class TransactionHandlingSettingsHandler : ValidatingXmlConfigSectionHandler
	{
		public TransactionHandlingSettingsHandler() : base(
			typeof(transactionHandlingSettings),
			"Framework.Transactions.TransactionHandlingSettings.xsd",
			"Framework.Transactions")
		{
			//
			// TODO: Add constructor logic here
			//
		}
//		#region IConfigurationSectionHandler Members
//
//		public object Create(object parent, object configContext, XmlNode section)
//		{
//			transactionHandlingSettings settings = null;
//
//			XmlSerializer ser = new XmlSerializer(typeof(transactionHandlingSettings));
//			XmlNodeReader nr = new XmlNodeReader(section);
//			settings = (transactionHandlingSettings)ser.Deserialize(nr);
//
//			return settings;
//		}
//
//		#endregion
	}
}
